#!/bin/bash

set -e
checkExitCode() {
if [ $? -ne 0 ]; then
    echo "Error"
    exit 1;
fi
}

BASEDIR=`dirname $0`

. $BASEDIR/io.sh *i* *p* *o* "$@"

set -x
$BASEDIR/generic_code

checkExitCode
